import httpInstance from '@/utils/http'
export const insertCartAPI = ({ goods }) => {
    return httpInstance.post('/cart/add', { ...goods })
}
export const findNewCartListAPI = (userId) => {
    return httpInstance.get('/cart?userId=' + userId)
}
export const removeCartAPI = (skuId) => {
    return httpInstance.delete('/cart?skuId=' + skuId)
}
export const updateCartAPI = ({ skuId, count, selected }) => {
    return httpInstance.post('/cart/update', { skuId, count, selected })
}